package com.flying.invest.strategy.model;

import java.util.Date;

import com.flying.framework.data.Data;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="i_strategy_price_change",title="价格变化监控策略", table="i_strategy_price_change", primaryKeys={"strategy_id"})
public class StrategyPriceChange extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "i_strategy_price_change";
	
	public final static String STRATEGY_ID = "strategy_id";
	public final static String FROM_DATE = "from_date";
	public final static String TO_DATE = "to_date";
	public final static String PRICE_BENCHMARK = "price_benchmark";
	public final static String RISE_RATE = "rise_rate";
	public final static String FELL_RATE = "fell_rate";
	
	
	@Param(value=STRATEGY_ID,   required=true,   maxlength=0,	desc="策略ID")
	private Long strategyId;
	
	@Param(value=FROM_DATE,   required=true,   maxlength=0,	desc="开始日期" )
	private Date fromDate;
	
	@Param(value=TO_DATE,   required=false,   maxlength=0,	desc="结束日期" )
	private Date toDate;
	
	@Param(value=PRICE_BENCHMARK,   required=true,   maxlength=0,	desc="基准价格" )
	private Double priceBenchmark;
	
	@Param(value=RISE_RATE,   required=false,   maxlength=0,	desc="上涨比例" )
	private Double riseRate;
	
	@Param(value=FELL_RATE,   required=false,   maxlength=0,	desc="下跌比例" )
	private Double fellRate;
	
	
	public Long getStrategyId() {
		return this.strategyId;
	}
	
	public void setStrategyId(Long strategyId) {
		this.strategyId = strategyId;
	}
	
	public Date getFromDate() {
		return this.fromDate;
	}
	
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	
	public Date getToDate() {
		return this.toDate;
	}
	
	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}
	
	public Double getPriceBenchmark() {
		return priceBenchmark;
	}

	public void setPriceBenchmark(Double priceBenchmark) {
		this.priceBenchmark = priceBenchmark;
	}

	public Double getRiseRate() {
		return this.riseRate;
	}
	
	public void setRiseRate(Double riseRate) {
		this.riseRate = riseRate;
	}
	
	public Double getFellRate() {
		return this.fellRate;
	}
	
	public void setFellRate(Double fellRate) {
		this.fellRate = fellRate;
	}
	

}